//
//  collectTableViewCell.m
//  Alltelevisionnews
//
//  Created by dllo on 15/12/5.
//  Copyright © 2015年 三人行. All rights reserved.
//

#import "collectTableViewCell.h"

@implementation collectTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    
    self.myImage = [[UIImageView alloc] init];
//    self.myImage.backgroundColor = [ UIColor yellowColor];
    [self.contentView addSubview:self.myImage];
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    [self.myImage mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.edges.equalTo(self.contentView).with.insets(UIEdgeInsetsMake(5, 5, 5, 5));
        
    }];
    
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
